/**
 * IsTools
 */
class UseIsTools {
  /**
   * 判断是否为空
   * @param val - 待判断的值
   */
  public isNull(val: any) {
    return (
      val === null ||
      val === undefined ||
      val === '' ||
      val.length <= 0 ||
      Object.keys(val).length <= 0
    );
  }
}

const useIsTools = new UseIsTools();
export default useIsTools;
